//
//  MapRadioButton.h
//  Kjs-iOS
//
//  Created by cfq on 16/6/3.
//  Copyright © 2016年 jmhz. All rights reserved.
//

#import <UIKit/UIKit.h>
@protocol MapRadioButtonDelegate;

@interface MapRadioButton : UIButton

@property(nonatomic, assign)id<MapRadioButtonDelegate> delegate;
@property(nonatomic, copy) NSString *groupId;
@property(nonatomic, assign) BOOL checked;

- (id)initWithDelegate:(id)delegate groupId:(NSString*)groupId backgroundColor:(UIColor*)color;
- (id)initWithDelegate:(id)delegate groupId:(NSString*)groupId;
- (id)initWithDelegate:(id)delegate groupId:(NSString*)groupId normalBackgroundImage:(NSString*)normalBackgroundImage selectedBackgroundImage:(NSString*)selectedBackgroundImage;

@end

@protocol MapRadioButtonDelegate <NSObject>

@optional

- (void)didSelectedRadioButton:(MapRadioButton *)radio groupId:(NSString *)groupId;

@end